package com.xxx.yuedong.community.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.yuedong.community.pojo.Activity;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

@Mapper
public interface ActivityDao extends BaseMapper<Activity> {

    /**
     * 加入活动
     * @param param
     * @return
     */
    int addActivityById(HashMap param);

    /**
     * 签到活动
     * @param param
     * @return
     */
    int checkActivity(HashMap param);

    HashMap searchActivityById(Long id);

    ArrayList<HashMap> searchAllActivity();



}
